package cn.sightsnow.zh.repository;

import cn.sightsnow.zh.entity.Image;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;

public interface ImageRepository extends MongoRepository<Image, String> {
    Image findByEasyDlResultId(String easyDlResultId);
    
    @Query("{ 'logId.value' : ?0 }")
    Image findByLogIdValue(String logId);
}
